package com.tarim.streetdance.mapper;

import com.tarim.streetdance.model.Article;
import com.tarim.streetdance.vo.Criteria;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component("ArticleMapper")
public interface ArticleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Article record);

    //新增
    int insertSelective(Article record);

    Article selectByPrimaryKey(Long id);

    //更新
    int updateByPrimaryKeySelective(Article record);

    int updateByPrimaryKeyWithBLOBs(Article record);

    int updateByPrimaryKey(Article record);

    //分页查询
    List<Article> selectByCondition(Criteria criteria);
    Long selectByConditionCount(Criteria criteria);
}